/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sunsite.tools;

/**
 *
 * @author Administrator
 */
public class Pagination {

    private int start;
//一次取得的数量
    private int size = 10;
//要取得页数
    private int currentPage = 1;
//总的记录页数
    private int totalPage = 0;
//总的记录条数
    private int totalRecord;

    public int getTotalRecord() {
        return totalRecord;
    }

    public void setTotalRecord(int totalRecord) {
        this.totalRecord = totalRecord;
    }

    public Pagination() {
    }

    public Pagination(int size) {
        this.size = size;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }
}
